﻿import request from '/@/utils/request';
enum Api {
  AddBusProductAttribute = '/api/busProductAttribute/add',
  DeleteBusProductAttribute = '/api/busProductAttribute/delete',
  UpdateBusProductAttribute = '/api/busProductAttribute/update',
  PageBusProductAttribute = '/api/busProductAttribute/page',
  GetBusProductDropdown = '/api/busProductAttribute/BusProductDropdown',
  GetBusAttributeDropdown = '/api/busProductAttribute/BusAttributeDropdown',
}

// 增加物料属性关系管理
export const addBusProductAttribute = (params?: any) =>
	request({
		url: Api.AddBusProductAttribute,
		method: 'post',
		data: params,
	});

// 删除物料属性关系管理
export const deleteBusProductAttribute = (params?: any) => 
	request({
			url: Api.DeleteBusProductAttribute,
			method: 'post',
			data: params,
		});

// 编辑物料属性关系管理
export const updateBusProductAttribute = (params?: any) => 
	request({
			url: Api.UpdateBusProductAttribute,
			method: 'post',
			data: params,
		});

// 分页查询物料属性关系管理
export const pageBusProductAttribute = (params?: any) => 
	request({
			url: Api.PageBusProductAttribute,
			method: 'post',
			data: params,
		});

export const getBusProductDropdown = () =>
		request({
		url: Api.GetBusProductDropdown,
		method: 'get'
		});
export const getBusAttributeDropdown = () =>
		request({
		url: Api.GetBusAttributeDropdown,
		method: 'get'
		});

